package com.corpdata.app.customer.service;

import java.util.List;
import java.util.Map;

import org.springframework.ui.ModelMap;

import com.corpdata.app.customer.entity.CustomerInfo;
import com.corpdata.app.customer.entity.SellRecord;
import com.corpdata.common.domain.DataGridRequestDTO;
import com.corpdata.common.result.Result;
import com.corpdata.core.base.BaseService;
import com.github.pagehelper.Page;

/**
 * 客户表
 * @author wu
 * @email 64088839@qq.com
 * @date 2018-06-13 16:46:46
 * 
 */
public interface CustomerInfoService extends BaseService<CustomerInfo>{

	Result addCustomer(Map<String,String> param);

	List<Map<String, String>> getProjectJson();

	String findVisitByPage(DataGridRequestDTO dgRequest);

	CustomerInfo findEdit(String id);

	Result editCustomer(Map<String, String> param);

	SellRecord findsellRecordById(String id);

	Result updateCustomerStaus(Map<String, String> param);

	Page<SellRecord> findsellRecord(DataGridRequestDTO dgRequest);

	Page<SellRecord> findsellRecordBycIdAnduId(String id);

	void findCountByState(ModelMap map);

	int findCountByDate(String date);

	List<Map<String,Object>> findCusByNamePhone(String param);

	List<CustomerInfo> findCustomerAll();

	List<Map<String, Object>> findPartitionByProject(String projectid);

	Result delCustomerAll(String cusId);
	
}
